package com.itheima.string;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串");
        String s = sc.next();
        char[] c = s.toCharArray();
        int smallCount = 0;
        int bigCount = 0;
        int numberCount = 0;




        for (int i = 0; i < c.length; i++) {

            char d = c[i];
            if(c[i]>='A'&&c[i]<='Z'){
            bigCount++;
            }else if(c[i]>='a'&&c[i]<='z'){

                smallCount++;

            }else if (c[i]>='0'&&c[i]<='9'){
                numberCount++;

            }



        }
        System.out.println(smallCount);
        System.out.println(bigCount);
        System.out.println(numberCount);

    }



}
